﻿using System;
using System.Collections.Generic;
using System.Text;

namespace PuttySessionTool
{
    class CWinscpSession
    {
        public string SessionKey = null;
        public SortedList<string, string> key = null;

        public CWinscpSession()
        {
            key = new SortedList<string, string>();
        }

        public string GetHostName()
        {
            return key["HostName"];
        }

        public UInt32 GetPortNumber()
        {
            return key.ContainsKey("PortNumber") ? UInt32.Parse(key["PortNumber"]) : 22;
        }

        public string GetUserName()
        {
            return key["UserName"];
        }

        public string GetPassword()
        {
            return key["Password"];
        }

        public string GetTunnelHostName()
        {
            return key["TunnelHostName"];
        }

        public string GetTunnelUserName()
        {
            return key["TunnelUserName"];
        }

        public string GetTunnelPassword()
        {
            return key["TunnelPassword"];
        }

        public string GetTunnel()
        {
            return key.ContainsKey("Tunnel") ?key["Tunnel"]:null;
        }

        public string GetPingType()
        {
            return key["PingType"];
        }

        public string GetKEX()
        {
            return key["KEX"];
        }

    }
}
